package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.common.pojos.article.ApArticle;
import com.heima.model.common.pojos.wemedia.WmNewsStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

@Mapper
public interface WmNewsStatisticsMapper extends BaseMapper<WmNewsStatistics> {
    List<WmNewsStatistics> selectItems(@Param("offset") int offset,
                                       @Param("size") Short size,
                                       @Param("beginDate")Date beginDate,
                                       @Param("endDate")Date endDate);

    List<ApArticle> selectApArticleList();

}
